package com.tanhua.api;

import com.tanhua.sso.pojo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentsServiceApi {

    Integer save(Comment newComment);

    //查看评论
    List<Comment> findCommentByMovementId(Integer page, Integer pagesize, String movementId);

    //是否点赞
    Integer findMyLike(Long nowId, ObjectId id);

    //查看,点赞,喜欢,评论信息
    List<Comment> findType(Long userId, int type,Integer page, Integer pagesize);

    //视频点赞
    void saveVideoLike(Comment comment);

    //取消视频点赞
    void disVideoLike(ObjectId id, Long userId);

    //发布视频评论
    void saveVideoComment(Comment newComment);
}
